network: hide dnamsq (dhcp+dns) item
authorFritz D. Ansel <[email protected]>
Mon, 2 Aug 2021 18:22:43 +0000 (20:22 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 22 Oct 2021 18:33:12 +0000 (20:33 +0200)
.. when no dnsmasq is installed, as it
tells only that there are no settings available

Signed-off-by: Fritz D. Ansel <[email protected]>
(cherry picked from commit 2393289367bb3c4e366ee36cc66af9149687139b)

modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json

index 188c695f3fb95e8ae7e726d44aa1c66e33b8e551..cc88cdda0d5e65b74870860a5381b26b1af3aba2 100644 (file)
@@ -55,6 +55,9 @@
                },
                "depends": {
                        "acl": [ "luci-mod-network-dhcp" ],
+                       "fs": {
+                               "/usr/sbin/dnsmasq": "executable"
+                       },
                        "uci": { "dhcp": true }
                }
        },